import request from '../utils/request';

// 接口
export const getData = (payload) => {
  return request.post(`api`, payload);
};


// 根据条件获取专家列表(带分页)
export const getExpertByCondition = (data) => {
  return request.post(`/project/expert/getExpertByCondition`, { data });
};

/**
 * 获取专家详情
 * objectId: 专家id
 */
export const getExpertDetails = (params) => {
  return request.get(`/project/expert/getExpertById`, { params });
};


/**
 * 获取专家详情
 * objectId: 专家id
 */
export const getExpertPrizes = (params) => {
  return request.get(`/project/expert/getPrizeById`, { params });
};

